<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #i1{
            color: red;
        }
        .c1{
            color: green;
        }
     body>p,input[type="text"]{
             background-color: yellow;
         }
        body>div>div>div>p{
            color: pink;
        }
        body div div p{
            background-color: blue;
        }
        a:link{color: green}/*未访问状态*/
        a:visited{color: red}/*访问过状态*/
        a:hover{color: yellow} /*悬停状态*/
        a:active{color: red} /*点击状态*/
    </style>


</head>
<body>
<ul>
    <li id="i1">刘备</li>
    <li>关羽</li>
    <li class="c1">张飞</li>
</ul>
<p id="i2">香蕉</p>
<p id="i3"  class="c1">苹果</p>
<input type="text">
<input type="password">

<div>
    <p>p1</p>
    <div> <p id="i4" class="c2">p2</p> </div>
    <div>
        <div> <p class="c2"> p3</p></div>
    </div>

</div>
<a href="http://www.qq.com">腾讯</a>


</body>
</html>